<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>写博客</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-default" th:fragment="topbar">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/sendBolg1">发表博客</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/manager">进入管理<span class="sr-only">(current)</span></a></li>
                <!--没有必要写查看所有博客，直接有搜索栏就可以了-->
                <!--<li>-->
                    <!--<a href="/bolglist" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">查看所有博客<span class="caret"></span></a>-->
                <!--</li>-->
            </ul>
            <!--查找博客-->
            <form class="navbar-form navbar-left" action="/look/bolg/list" method="get">
                <div class="form-group">
                    <input type="text" class="form-control" name="word" placeholder="Search">
                </div>
                <input name="size" th:value="3" th:hidden="size">
                <input name="pageNumber" th:value="0" th:hidden="pageNumber">
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <!--<li><a href="/alipay">充值</a></li>-->
                <li>
                    <a href="/updateuser"  role="button" aria-haspopup="true" aria-expanded="false">修改信息<span class="caret"></span></a>
                </li>
                <li><a href="/user/home">进入主页</a></li>
                <li><a href="/logout">退出登录</a></li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

</body>
</html>